<div class="adminPanel">
	<div class="toolboxImg icon-commission">Správa komisií</div>
	<div class="toolbox">
		<table class="toolbox">
			<tr>
				<td>				
					<a href="<?php echo $this->url(array('controller' => 'commission','action' => 'add'))?>">
						<div class="icon addCommission"></div>
						Pridať
					</a>
				</td>
			</tr>
		</table>
	</div>
	<div class="clear"></div>
</div>
<div class="message"></div>
<div class="ajaxContainer">
	<div class="selectContainer span-5 first">		
			<div class="treeContainer">
				<div class="treeHeader">Komisie</div>				
				<ul class="searchAble">			
					<?php foreach($this->commissions as $commission):?>
						<li>							
							<?php echo								
								$this->ajaxLink(
								//linkName
								$commission->getName(),
								//url 
								$this->url(array('controller' => 'commission','action' => 'show-commission','format' => 'html')),
								//options
								array(
								'update' => '.dataContainer',
								'dataType' => 'html',
								),
								//params
								array(
									'cid' => $commission->getCid()
								)
								);
							?>													
						</li>				
					<?php endforeach;?>
				</ul>
		</div>		
	</div>
	<div class="dataContainer span-18 last">
	</div>
	<div class="clear"></div>
</div>